<template>
	<view class="content">
		<view class="top" style="padding:10rpx 0;"></view>
		<view class="label label2">
			<view class="label_left">
				手机号
				<view class="smstart">*</view>
			</view>
			<view class="label_right">
				<input type="tel" placeholder="请输入手机号" class="input_as" value="3213213" adjust-position="false"/>
			</view>
		</view>
		<view class="label label2" style="border-top: 2rpx solid #ebebeb;">
			<view class="label_left">
				短信验证码
				<view class="smstart">*</view>
			</view>
			<view class="label_right" style="justify-content: flex-start;">
				<input type="number" placeholder="5位验证码" class="input_as"  adjust-position="false" style="width:80%;"/>
				<view class="getma">获取验证码</view>
			</view>
		</view>
		<view class="label label2" style="border-top: 2rpx solid #ebebeb;">
			<view class="label_left">
				登录密码
				<view class="smstart">*</view>
			</view>
			<view class="label_right">
				<input type="text" placeholder="请输入您的登录密码" class="input_as"  adjust-position="false"/>
			</view>
		</view>
		<view class="label label2" style="border-top: 2rpx solid #ebebeb;">
			<view class="label_left">
				确认密码
				<view class="smstart">*</view>
			</view>
			<view class="label_right">
				<input type="text" placeholder="请输入确认登录密码" class="input_as"  adjust-position="false"/>
			</view>
		</view>
			<view class="bao_btn">立即绑定</view>
			<!-- 侧边栏 -->
			<fixce></fixce> 
			<!-- 回到顶部start -->
			<view class="top" :style="{'display':(topState===true? 'block':'none')}">
			<image src="../../static/huitop.png" class="huitop"
			@tap="top()">
			</view>
			</image>
				<!-- 回到顶部end-->
	</view>
</template>

<script>
	import fixce from '../../component/fixce.vue';  //侧边栏组件
	export default{
		components:{
		fixce
		},
		data (){
			return{
				topState:false,
			}
			},
			// 回到顶部start
			onPageScroll(e){ //根据距离顶部距离是否显示回到顶部按钮
			    if(e.scrollTop>200){ //当距离大于200时显示回到顶部按钮
			        this.topState = true
			    }else{ //当距离小于200时关闭回到顶部按钮
			        this.topState = false
			    }
			},
			// 回到顶部end
			methods:{
				top() { //回到顶部
				　　　　uni.pageScrollTo({ 
				　　　　　　scrollTop: 0, duration: 300 
				　　　　}); 
				　　}
			
		}
	}
</script>

<style>
	.content{
		width:100%;
		height:100vh;
		background: #f3f3f3;
	}
	.top{
		padding:20rpx;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		width:90%;
		margin:0 auto;
	}
	.getwx{
		 color: #ff80c0;
		 text-decoration: underline;
		 font-size:30rpx;
	}
	.label{
		width:94%;
		padding:20rpx 3%;
		background-color: #fff;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.label_left{
		display: flex;
		justify-content:flex-start;
		align-items: center;
		color:#666;
		font-size:28rpx;
	}
	.label_right{
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
	.tou_img{
		border-radius: 100rpx;
		width:100rpx;	
	}
	.btimg{
		width:30rpx;
		margin-left:5rpx;
	}
	.label2 .label_left{
		width:23%;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.smstart{
		color:red;
		font-size:30rpx;
	}
	.label2 .label_right{
		width:80%;
	}
	.input_as{
		display: inline-block;
		width:100%;
		color:#000;
		text-indent: 20rpx;
	}
	.label2_right_sm{
		display: flex;
		justify-content: flex-end;
		align-items: center;
		color:#666;
	}
	.uni-input-input{
		font-size: 30rpx!important;
	}
	.bao_btn{
		    background: #ff80c0;
		    color: #fff;
			border-radius: 10rpx;
			display: flex;
			justify-content: space-around;
			align-items: center;
			width:90%;
			height:80rpx;
			margin:50rpx auto 0;
			font-size:30rpx;
	}
	.getma{
		    color: #666;
		    border: 2rpx solid #666;
			border-radius: 10rpx;
			padding:10rpx 15rpx;
			white-space: nowrap;
	}
</style>
